<%@ page contentType="text/html;charset=utf-8"%>
<%@ page language="java" import="com.xzcf.entity.User"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title>募捐与竞拍系统</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<!--header-->

<link href="<%=request.getContextPath()%>/style/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/css/style.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/css/style-responsive.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>
<link rel="shortcut icon" href="<%=request.getContextPath()%>/style/image/title.jpg" />
<style type="text/css">
.main{
 position:relative;
 padding-right: 0px;
 padding-left: 1px;
 width:auto;
 background-color:#FFFFFF;
 z-index:2;
 overflow:hidden;
 height:100%;
}

.main { *height:100%; *margin-left:206px;}
.top, .side, .main, .bottom {*position:relative; *top:0; *right:0; *bottom:0; *left:0;}
</style>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed" onload="disptime();">

	
<!-- BEGIN HEADER -->
<div class="header navbar navbar-inverse navbar-fixed-top">
  <!-- BEGIN TOP NAVIGATION BAR -->
  <div class="navbar-inner">
    <div class="container-fluid">
      <!-- BEGIN LOGO -->
      
      <ul class="nav pull-left">
      	<li>
      		<script language="javascript"> 
				function disptime(){   
					currentDate = new Date();  
					var timeStr="";
					with(currentDate){   
						day=getDay();
						month=getMonth()+1;
						//this.document.write(getFullYear()+'年'+month+'月'+getDate()+'日')   
						timeStr = getFullYear()+'年'+month+'月'+getDate()+'日'
					}   
					if(day==1){timeStr += ' 星期一    ';}
					if(day==2){timeStr += ' 星期二    ';}
					if(day==3){timeStr += ' 星期三    ';}
					if(day==4){timeStr += ' 星期四    ';}
					if(day==5){timeStr += ' 星期五    ';}
					if(day==6){timeStr += ' 星期六    ';}
					if(day==0){timeStr += ' 星期日    ';} 
					
					var hours = currentDate.getHours();
					var minu = currentDate.getMinutes();
					var sec = currentDate.getSeconds();
					if(minu < 10)minu = "0" + minu;
					if(sec < 10) sec = "0" + sec;
					
					timeStr += hours + ':' + minu + ':' + sec;
					
					//var timer = setTimeout("PageDate()",1000);
					document.getElementById("clock").innerHTML = timeStr;
					var timer = setTimeout("disptime()",1000);
				}
			</script>
			<h5><div id="clock" style="COLOR: #1A5CC8"></div></h5>
      	</li>
      </ul>
      
      <!-- END LOGO -->
      <!-- BEGIN RESPONSIVE MENU TOGGLER -->
      <a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse"> <img src="<%=request.getContextPath()%>/style/image/menu-toggler.png" alt="" /> </a>
      <!-- END RESPONSIVE MENU TOGGLER -->
      <!-- BEGIN TOP NAVIGATION MENU -->
      <ul class="nav pull-right">
        <!-- BEGIN USER LOGIN DROPDOWN -->
        <li class="dropdown user"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img alt="" src="<%=request.getContextPath()%>/style/image/avatar1_small.jpg" /> <span class="username"><%=((User)session.getAttribute("user")).getUserName() %></span> <i class="icon-angle-down"></i> </a>
          <ul class="dropdown-menu">
            <li><a href="login!editMyself" target="iframepage"><i class="icon-user"></i> My Profile</a></li>
            <li class="divider"></li>
            <li><a href="/XZCF/login.jsp"><i class="icon-key"></i> Log Out</a></li>
          </ul>
        </li>
        <!-- END USER LOGIN DROPDOWN -->
      </ul>
      <!-- END TOP NAVIGATION MENU -->
    </div>
  </div>
  <!-- END TOP NAVIGATION BAR -->
</div>
<!-- END HEADER -->
<!-- BEGIN CONTAINER -->
<div class="page-container">
  <!-- BEGIN SIDEBAR -->
  <div class="page-sidebar nav-collapse collapse">
    <!-- BEGIN SIDEBAR MENU -->
    <ul class="page-sidebar-menu">
      <li>
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        <div class="sidebar-toggler hidden-phone"></div>
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
      </li>
      <li class="sidebar-search">
        <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
       
        <!-- END RESPONSIVE QUICK SEARCH FORM -->
      </li>
      <li class="start active "> <a href="/XZCF/Main.html" target="iframepage"> <i class="icon-home"></i> <span class="title">主页</span> <span class="selected"></span> </a> </li>
      <li class=""> <a href="javascript:;"> <i class="icon-cogs"></i> <span class="title">个人信息管理</span> <span class="arrow "></span> </a>
        <ul class="sub-menu">
          <li > 
          	<a href='<s:url action="login!editMyself"></s:url>' target="iframepage">
          		信息修改
          	</a> 
          </li>
          <li > <a href="item!showMyDonate" target="iframepage"> 我的募捐</a> </li>
          <li > <a href="item!showMyAuction" target="iframepage"> 我的竞拍</a> </li>
        </ul>
      </li>
      
      <s:if test="#session.user.userRoleType == 0">
      	<li class=""> <a href='login!load' target="iframepage"> <i class="icon-cogs"></i> <span class="title">用户管理</span> </a> </li>
	  </s:if>
	  <li class=""> <a href="javascript:;"> <i class="icon-briefcase"></i> <span class="title">募捐管理</span> <span class="arrow "></span> </a>
        <ul class="sub-menu">
          <li > <a href="/XZCF/DonateManage/releaseGoods.jsp" target="iframepage"> 发布物品</a> </li>
          <s:if test="#session.user.userRoleType == 0">
          	<li > <a href="item!Need2Verify" target="iframepage"> 募捐审核</a> </li>
          </s:if>
        </ul>
      </li>
      <li class=""> <a href="javascript:;"> <i class="icon-bookmark-empty"></i> <span class="title">竞拍管理</span> <span class="arrow "></span> </a>
        <ul class="sub-menu">
          <li > <a href="item!releasingItemLoad" target="iframepage">竞拍中物品</a> </li>
          <s:if test="#session.user.userRoleType == 0">
          	<li > <a href="item!allItemLoad" target="iframepage">全部物品</a> </li>
          </s:if>
        </ul>
      </li>
      <s:if test="#session.user.userRoleType == 0">
	      <li class=""> <a href="javascript:;"> <i class="icon-table"></i> <span class="title">日志管理</span> <span class="arrow "></span> </a>
	        <ul class="sub-menu">
	          <li > <a href="record!loadRecord" target="iframepage"> 竞投记录 </a> </li>
	        </ul>
	      </li>
      </s:if>
    </ul>
    <!-- END SIDEBAR MENU -->
  </div>
  <!-- END SIDEBAR -->
  <div class="page-content">
    <!-- BEGIN PAGE CONTAINER-->
    <div class="container-fluid">
      <!-- BEGIN PAGE HEADER-->
      <div class="row-fluid">
         <h3 class="page-title"> 募捐与竞拍系统 <small>by FZF</small> </h3>
        <div class="main">
        	<iframe src="/XZCF/Main.html" marginheight="0" marginwidth="0" frameborder="0" scrolling="auto" width="100%" height="auto" id="iframepage" name="iframepage" onLoad="iFrameHeight()" ></iframe>
			
			<script type="text/javascript" language="javascript">
			
			    function iFrameHeight() {
			
			        var ifm= document.getElementById("iframepage");
			
			        var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentDocument;
			
			            if(ifm != null && subWeb != null) {
			
			            ifm.height = subWeb.body.scrollHeight;
			
			            }
			
			    }
			
			</script>  
        </div>
      </div>
      <!-- END PAGE HEADER-->
    </div>
    <!-- END PAGE CONTAINER-->
  </div>
</div>
<!-- BEGIN CONTAINER -->
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<div class="footer">
  <div class="footer-inner"> 2015 &copy; XZCF by FZF. </div>
  <div class="footer-tools"> <span class="go-top"> <i class="icon-angle-up"></i> </span> </div>
</div>
<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<script src="<%=request.getContextPath()%>/style/js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/style/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
<script src="<%=request.getContextPath()%>/style/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/style/js/bootstrap.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS --Left Menu--> 
<script src="<%=request.getContextPath()%>/style/js/app.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/style/js/index.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->
<script>

		jQuery(document).ready(function() {    

		   App.init(); // initlayout and core plugins

		   Index.init();

		   Index.initJQVMAP(); // init index page's custom scripts

		   Index.initCalendar(); // init index page's custom scripts

		   Index.initCharts(); // init index page's custom scripts

		   Index.initChat();

		   Index.initMiniCharts();

		   Index.initDashboardDaterange();

		   Index.initIntro();

		});

	</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>
